import request from '@/utils/request.js'

// 获取热门推荐
export function getArticleListForTui(data) {
  return request({
    url: '/api/v1.article/getArticleListForTui',
    method: 'POST',
    data
  })
}

// 阅读排行
export function getSearchLog(data) {
  return request({
    url: '/api/v1.article/getSearchLog',
    method: 'POST',
    data
  })
}

// 获取资讯胶囊广告
export function getAds(data) {
  return request({
    url: '/api/v1.article/getAds',
    method: 'POST',
    data
  })
}

// 咨询模块指南
export function getMenu(data) {
  return request({
    url: '/api/v1.article/getMenu',
    method: 'POST',
    data
  })
}

// 获取资讯列表
export function getArticleList(data) {
  return request({
    url: '/api/v1.article/getArticleList',
    method: 'POST',
    data
  })
}

// 获取文章详情
export function getArticleInfo(data) {
  return request({
    url: '/api/v1.article/getArticleInfo',
    method: 'POST',
    data
  })
}
